package com.xuecheng.api.content.agent;

import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 黄子弟
 * @Date 2021/12/15
 */



@FeignClient(value = XcFeignServiceNameList.XC_CONTENT_SERVICE)
public interface ContentApiAgent {

    String PRO_STUFFX = "content/l/";
    @GetMapping(PRO_STUFFX+"content/{mediaId}")
    RestResponse<TeachplanMediaDTO> getById(@PathVariable Long mediaId);
}
